package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

//用于返回JSON的工具
@Getter@Setter
public class JSONResult {
    //默认成功
    private boolean success = true;
    //错误信息
    private String msg;

    //返回给前台的数据
    private Object result;

    //标记错误信息,出错时才调用
    public void mark(String msg){
        success = false;
        this.msg=msg;
    }


}
